package com.qiaofang.housewarehouse.stub.facade;

import com.qiaofang.housewarehouse.stub.request.HouseQueryDetailRequest;
import com.qiaofang.housewarehouse.stub.request.ListHouseQueryDetailByIdsRequest;
import com.qiaofang.housewarehouse.stub.request.SaleHouseQueryPriceRequest;
import com.qiaofang.housewarehouse.stub.response.ListSaleHouseQueryDetailByIdsResponse;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryDetailListResponse;
import com.qiaofang.housewarehouse.stub.response.SaleHouseQueryDetailResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "housewarehouse",url="${feign.url.housewarehouse}")
@Api(tags = "SaleHouseQueryInfo", value = "出售房源接口", description = "出售房源接口（最新版）")
@RequestMapping(value = {"/SaleHouseQueryInfo"})
public interface SaleHouseQueryInfoFacade {

    @ApiOperation(value="出售房源详细列表",response = SaleHouseQueryDetailListResponse.class )
    @RequestMapping(value = "/getSaleHouseList",method = RequestMethod.POST)
    SaleHouseQueryDetailListResponse getSaleHouseInfo(SaleHouseQueryPriceRequest saleHouseQueryRequest);

   // @ApiOperation(value="出售房源详情",response = SaleHouseQueryDetailResponse.class )
    @RequestMapping(value = "/getSaleHouseDetail",method = RequestMethod.POST)
    public SaleHouseQueryDetailResponse getSaleHouseDetail(HouseQueryDetailRequest saleHouseQueryRequest);

    @ApiOperation(value="根据房源Id集合出售房源详情",response = SaleHouseQueryDetailResponse.class )
    @RequestMapping(value = "/listSaleHouseDetailByIds",method = RequestMethod.POST)
    public ListSaleHouseQueryDetailByIdsResponse listSaleHouseDetailByIds(ListHouseQueryDetailByIdsRequest saleHouseQueryRequest);
}
